-- GENERATED SPELL FOR [Blood Elf Reclaimer] --


function spell0_6199(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6199', 3000, 1)
end

function spell1_6199(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_6199', 3500, 1)
end

function spell2_6199(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_6199', 15000, 1)
end

function Sorts_6199(pUnit, Event)
local choix_sorts_6199 = math.random(0, 2)
if choix_sorts_6199 == 0 then
pUnit:RegisterEvent('spell0_6199', 1, 1)
end
if choix_sorts_6199 == 1 then
pUnit:RegisterEvent('spell1_6199', 1, 1)
end
if choix_sorts_6199 == 2 then
pUnit:RegisterEvent('spell2_6199', 1, 1)
end
end

function mob6199_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6199', math.random(1500, 3000), 1)
end

function mob6199_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6199_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6199_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6199, 1, 'mob6199_Action')
RegisterUnitEvent(6199, 2, 'mob6199_Leave')
RegisterUnitEvent(6199, 3, 'mob6199_Kill')
RegisterUnitEvent(6199, 4, 'mob6199_Die')
